package com.hdey.mapper.max;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hdey.pojo.heng.TbUscUser;
import com.hdey.pojo.max.TbUscStock;
import com.hdey.vo.StockVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TbUscStockMapper extends BaseMapper<TbUscStock> {

        List<StockVo> getStock(@Param("cgName") String cgName,@Param("cgCode") String cgCode,
                               @Param("branchCode") String branchCode,
                               @Param("warehousId") Integer warehousId);


        int updateStockAmount( @Param("stockMasterId") Integer stockMasterId, @Param("amount") Integer amount);

        TbUscStock countId(@Param("warId") Integer warehousId,@Param("dicId") Integer dictionaryId);



}
